package Gui;

import java.io.IOException;

public class WindowManager {
	private static MRCV_window_login ventanaLogin;

	private static MRCV_principal principal;
	
	
	public static void main(String[]Args){
		crearVentanaLogin();
		
	}
	public static void cerrarVentanaLogin(){
		
		ventanaLogin.setVisible(false);
	
		
	}
	
	public static void abrirVentanaLogin(){
		ventanaLogin.reiniciarVentana();
		ventanaLogin.setVisible(true);
	}
	public static void crearVentanaLogin(){
		ventanaLogin = new MRCV_window_login();
		ventanaLogin.setVisible(true);
	}
	public static void crearVentanaPrincipal(){
		try {
			principal = new MRCV_principal (ventanaLogin.getController());
			principal.setVisible(true);
		} catch (IOException e) {
			
			e.printStackTrace();
		}
	}
	
	public static void cerrarVentanaPrincipal(){
		principal.setVisible(false);
		principal.dispose();
	}
	
	
	
	
	

}
